package com.quinn.myDemo.testforcode;

import com.alibaba.fastjson.JSON;
import java.io.File;
import java.util.ArrayList;
import java.util.Date;

import com.taobao.api.ApiException;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.AlibabaAlihealthDrugMscGetentinfoRequest;
import com.taobao.api.response.AlibabaAlihealthDrugMscGetentinfoResponse;

/**
 * Demo0923
 *
 * @author HanQuinn
 * Date: 2024/9/23
 * Time: 9:02
 */
public class Demo0923 {

    public static void main(String[] args) {
        try {
            TaobaoClient client = new DefaultTaobaoClient("http://gw.api.taobao.com/router/rest", "12129701", "111");
            AlibabaAlihealthDrugMscGetentinfoRequest req = new AlibabaAlihealthDrugMscGetentinfoRequest();
            req.setRefEntId("320000000000127971");
            req.setEntName("上海信谊联合医药药材有限公司");
            AlibabaAlihealthDrugMscGetentinfoResponse rsp = client.execute(req);
            System.out.println(rsp.getBody());

        } catch (ApiException e) {

            System.out.println(e.getSubErrMsg());
        }
    }
}















